Skip to content

osal: timer: Use CLOCK_MONOTONIC for Zephyr builds.#48

Open
quic-aditrath wants to merge 1 commit intoAudioReach:masterfrom
quic-aditrath:zephyr_osal_timer
Open

osal: timer: Use CLOCK_MONOTONIC for Zephyr builds.#48
quic-aditrath wants to merge 1 commit intoAudioReach:masterfrom
quic-aditrath:zephyr_osal_timer

Conversation

@quic-aditrath
Copy link
Contributor

Replace CLOCK_BOOTTIME with CLOCK_MONOTONIC in timer functions when building for Zephyr platform to ensure compatibility with Zephyr's POSIX API implementation.

CLOCK_BOOTTIME is not defined in Zephyr's POSIX compatibility layer, causing compilation failures. CLOCK_MONOTONIC provides equivalent monotonic time functionality and is available in Zephyr's clock API.

Replace CLOCK_BOOTTIME with CLOCK_MONOTONIC in timer functions when
building for Zephyr platform to ensure compatibility with Zephyr's
POSIX API implementation.

CLOCK_BOOTTIME is not defined in Zephyr's POSIX compatibility layer,
causing compilation failures. CLOCK_MONOTONIC provides equivalent
monotonic time functionality and is available in Zephyr's clock API.

Signed-off-by: Aditya Rathi <aditrath@qti.qualcomm.com>
@quic-aditrath quic-aditrath requested review from a team January 29, 2026 09:55
Copy link
Contributor

@quic-plai quic-plai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should just consolidate to use MONOTONIC clock instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants